package com.example.entity;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.example.entity.basics.BasicsEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author ptuDai
 * @since 2022-04-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class Position extends BasicsEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 上级等级
     */
    private Integer parentLevel;
    /**
     * 职位等级
     */
    private Integer level;

    /**
     * 职位名称
     */
    private String name;

    /**
     * 下级职位
     */
    @TableField(exist = false)
    private List<Position> children = new ArrayList<>();

}
